package hotel.controller;

import hotel.modal.Room;
import javafx.fxml.FXML;

import javafx.scene.control.Label;

public class RoomButtonController {
	@FXML
	private Label roomNameLb;
	@FXML
	private Label roomTypeLb;
	
	private Room room;
	

	@FXML
	public void initialize() {
		
	}
	
	public Room getRoom() {
		return room;
	}
	public void setRoom(Room room) {
		this.room = room;
		String typeStr = room.getTypeName();
		if(room.isHourRoom()) typeStr += "(钟点房)";
		this.roomNameLb.setText(room.getRoomNo());
		this.roomTypeLb.setText(typeStr);
	}
}
